package com.neuedu.corejava.ch8.homework;

import java.util.Scanner;

public class ch81 {
	
	
	
	public static void main(String[] args) {
		
		Scanner scanner=new Scanner(System.in);
		String string1=scanner.next();
		String string2=scanner.next();
		
		try {
			int a=Integer.parseInt(string1);
			int b=Integer.parseInt(string2);
			int c=a/b;
			System.out.println(c);
		}catch(ArrayIndexOutOfBoundsException e1){
			e1.printStackTrace();
			
		}catch (NumberFormatException|ArithmeticException e) {
			// TODO: handle exception
			e.printStackTrace();
		}finally{
			System.out.println("总是被执行");
		}
	}

}
